Skip to content

Conversation

@DrewImm
Copy link
Member

@DrewImm DrewImm commented Mar 31, 2025

No description provided.

@DrewImm DrewImm requested a review from Copilot March 31, 2025 00:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the command help functionality to include rendering of option types, default values, and available choices. Key changes include:

  • Enhancements to the test suite (test/spec/command-help.spec.ts) to verify updated option displays.
  • Changes to the OptionType enum in src/command-options.ts to use string values.
  • Refactoring of the help display logic in src/command-help.ts to conditionally show type, default, and choices.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/spec/command-help.spec.ts Updates tests to expect formatted output with type, default, choices.
src/command-options.ts Changes OptionType enum to use explicit string values.
src/command-help.ts Refactors option output formatting using a helper method.

@DrewImm DrewImm merged commit 501961f into dev Mar 31, 2025
@DrewImm DrewImm deleted the issue-16 branch March 31, 2025 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants